/*
 * @(#)ExportApp.java
 *
 * Copyright 2011 Xinhua Online, Inc. All rights reserved.
 */

package com.winxuan.channel.export;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.winxuan.channel.export.kfuz.ExportCommodity;

/**
 * description
 * @author  HideHai
 * @version 1.0,2011-5-12
 */
public class ExportApp {
	
	 private static ApplicationContext applicationContext = new ClassPathXmlApplicationContext("/spring/global-app.xml");
	// private static String resourceUrl = "/com/winxuan/channel/export/utils/InputText";
	 
	 public static void main(String[] args) {
		new ExportApp().Kfuz();
	}
	 
	private void Kfuz(){
		 long s = System.currentTimeMillis();
		 ExportCommodity exportCommodity = (ExportCommodity) applicationContext.getBean("exportKfuzCommodity");
		 exportCommodity.setInputGoodsId("E:\\kfu\\h-30000.txt");
		 exportCommodity.setOutputPath("E:\\kfu\\h-30000.csv");
		 exportCommodity.setImageFilePath("E:\\kfu\\h-30000-images.txt");
		 exportCommodity.workFlow();
		 System.out.println((System.currentTimeMillis() - s));
	}

}

